*{
    box-sizing: border-box;
}
body{
    background-color: #8e448e;
    font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
    display: flex;
    justify-content: center;
    align-content: center;
    min-height: 100vh;
    margin: auto;
}
.container{
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
    width: 400px;
    max-width: 100%;
}
.header{
    background-color: #fff;
    border-radius: 10px 10px 0 0;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
    padding: 20px 40px;
}
.header h2{
    margin: 0;
}
.form{
    padding: 30px 40px;
}
.form_control{
    margin-bottom: 10px;
    padding-bottom: 20px;
    position: relative;
}
.form_control label{
    display: inline-block;
    margin-bottom: 5px;
}
.form_control input{
    border: 2px solid #f0f0f0;
    border-radius: 4px;
    display: block;
    font-family: inherit;
    font-size: 14px;
    padding: 10px;
    width: 100%;
}
/* 输入框获取焦点时 */
.form_control input:focus{
    outline: 0;
}
.form_control.success input{
    border-color: #2ecc71;
}
.form_control.error input{
    border-color: #e74c3c;
}
.form_control i{
    position: absolute;
    top: 40px;
    right: 10px;
    visibility: hidden;
}
.form_control.success i.el-icon-success{
    visibility: visible;
    color: #2ecc71;
}
.form_control.error i.el-icon-warning{
    visibility: visible;
    color: #e74c3c;
}
.form_control small{
    visibility: hidden;
    position: absolute;
    font-weight: 600;
    bottom: 0;
    left: 0;
}
.form_control.error small{
    visibility: visible;
    color: #e74c3c;
}
.form button{
    background-color: #8e448e;
    border:2px solid #8e448e;
    border-radius: 5px;
    color: #fff;
    padding: 10px;
    width: 100%;
    font-size: 16px;
    display: block;
    transition: all 0.3s ease;
}
.form button:hover{
    background-color: #fff;
    color: #8e448e;
}